﻿using HAL_WebAPI_Demo.Controllers.Resources;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using System.Web.Http;

namespace HAL_WebAPI_Demo.Controllers
{
    public class HomeController : ApiController
    {
        public AccountRepresentation Get(int id)
        {
            return new AccountRepresentation
            {
                Id = 1,
                Account = "test_account",
                CreateDate = DateTime.Now,
                IsValid = true,
                Password = "123456",
                EmployeeId = 0
            };
        }

        //async public Task<HttpResponseMessage> Post([FromBody]AccountRepresentation account)
        //{

        //}
        public void Put() { }
        public void Delete() { }
    }
}
